package com.mezz.bones.im.common.message.body.in;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

/**
 * @Author: zhuang
 * @Date: 2024/12/19 14:12
 * @Description: TODO
 * @Version: 1.0
 **/

@Data
@ApiModel("会话-置顶")
public class ConversationTopReq {

    @ApiModelProperty("用户ID")
    @NotBlank(message = "userId不能为空")
    private String userId;

    @ApiModelProperty("会话ID")
    @NotBlank(message = "conversationId不能为空")
    private String conversationId;

    @ApiModelProperty("1置顶 0取消置顶")
    @NotNull(message = "top不能为空")
    @Range(min = 0, max = 1, message = "1置顶 0取消置顶")
    private Integer top;
}
